<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <title>更多图片</title>
    <link rel="stylesheet" href="static/css/pc/minCss/all.min.css" />

    <!--IE浏览器运行最新的渲染模式-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <!-- Bootstrap -->
    <link rel="stylesheet" href="static/css/pc/minCss/bootstrap.min.css" />
    <link rel="stylesheet" href="static/css/pc/minCss/all.min.css" />

    <!--[if lt IE 9]>
    <script src="static/js/pc/dest/html5shiv.min.js"></script>
    <script src="static/js/pc/dest/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<div id="header" style="height: 50px;"></div>
<div class="more-img-tit">
    <ul>
        <li class="more-img-tit-hover"><a href="v1.1artwork-imgAlbum.html">图片</a></li>
        <li><a href="v1.1artwork-video.html">视频</a></li>
        <li><a href="v1.1artwork-audio.html">音乐</a></li>
        <li><a href="v1.1artwork-text.html">文字</a></li>
        <li><a href="v1.1artwork-fans&&attention.html">关注</a></li>
        <li><a href="v1.1artwork-fans&&attention.html">粉丝</a></li>
    </ul>
</div>
<div id="per-wall">
    <div id="per-album">
        <div class="per-album-tit">
            <div class="per-album-titL">
                <p id="albumP"><span id="albumName">相册名称名称</span> <a href="javascript:;" onclick="editAlbum()"  target="_self">&nbsp;</a></p>
                <input id="albumInput" type="text" name="album" class="form-control zcbl-album-control zcbl-hidden" onblur="saveAlbum()">
            </div>
            <div class="per-album-titR"><a href="./personal-publish-pic.html" target="_blank" class="btn-yellow-50 right">上传作品</a></div>
            <div class="clear"></div>
        </div>
        <div class="per-album-con">
            <ul>
                <li>
                    <div class="per-album-box">
                        <div class="per-album-imgBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self"><img src="static/images/pc/personal/album1.jpg" height="230" width="231" alt="" /></a>
                            <div class="per-album-imgEdit zcbl-hidden">
                                <!--<p class="per-album-imgEditFM"><a href="#" target="_self">设为封面</a></p>-->
                                <p class="per-album-imgEditDel"><a href="#" target="_self">&nbsp;</a></p>
                            </div>
                        </div>
                        <div class="per-album-titBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self">作品名称</a>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="per-album-box">
                        <div class="per-album-imgBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self"><img src="static/images/pc/personal/album2.jpg" height="230" width="231" alt="" /></a>
                            <div class="per-album-imgEdit zcbl-hidden">
                                <!--<p class="per-album-imgEditFM"><a href="#" target="_self">设为封面</a></p>-->
                                <p class="per-album-imgEditDel"><a href="#" target="_self">&nbsp;</a></p>
                            </div>
                        </div>
                        <div class="per-album-titBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self">作品名称</a>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="per-album-box">
                        <div class="per-album-imgBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self"><img src="static/images/pc/personal/album3.jpg" height="230" width="231" alt="" /></a>
                            <div class="per-album-imgEdit zcbl-hidden">
                                <!--<p class="per-album-imgEditFM"><a href="#" target="_self">设为封面</a></p>-->
                                <p class="per-album-imgEditDel"><a href="#" target="_self">&nbsp;</a></p>
                            </div>
                        </div>
                        <div class="per-album-titBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self">作品名称</a>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="per-album-box">
                        <div class="per-album-imgBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self"><img src="static/images/pc/personal/album4.jpg" height="230" width="231" alt="" /></a>
                            <div class="per-album-imgEdit zcbl-hidden">
                                <!--<p class="per-album-imgEditFM"><a href="#" target="_self">设为封面</a></p>-->
                                <p class="per-album-imgEditDel"><a href="#" target="_self">&nbsp;</a></p>
                            </div>
                        </div>
                        <div class="per-album-titBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self">作品名称</a>
                        </div>
                    </div>
                </li>

                <li>
                    <div class="per-album-box">
                        <div class="per-album-imgBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self"><img src="static/images/pc/personal/album1.jpg" height="230" width="231" alt="" /></a>
                            <div class="per-album-imgEdit zcbl-hidden">
                                <!--<p class="per-album-imgEditFM"><a href="#" target="_self">设为封面</a></p>-->
                                <p class="per-album-imgEditDel"><a href="#" target="_self">&nbsp;</a></p>
                            </div>
                        </div>
                        <div class="per-album-titBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self">作品名称</a>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="per-album-box">
                        <div class="per-album-imgBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self"><img src="static/images/pc/personal/album2.jpg" height="230" width="231" alt="" /></a>
                            <div class="per-album-imgEdit zcbl-hidden">
                                <!--<p class="per-album-imgEditFM"><a href="#" target="_self">设为封面</a></p>-->
                                <p class="per-album-imgEditDel"><a href="#" target="_self">&nbsp;</a></p>
                            </div>
                        </div>
                        <div class="per-album-titBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self">作品名称</a>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="per-album-box">
                        <div class="per-album-imgBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self"><img src="static/images/pc/personal/album3.jpg" height="230" width="231" alt="" /></a>
                            <div class="per-album-imgEdit zcbl-hidden">
                                <!--<p class="per-album-imgEditFM"><a href="#" target="_self">设为封面</a></p>-->
                                <p class="per-album-imgEditDel"><a href="#" target="_self">&nbsp;</a></p>
                            </div>
                        </div>
                        <div class="per-album-titBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self">作品名称</a>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="per-album-box">
                        <div class="per-album-imgBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self"><img src="static/images/pc/personal/album4.jpg" height="230" width="231" alt=""  /></a>
                            <div class="per-album-imgEdit zcbl-hidden">
                                <!--<p class="per-album-imgEditFM"><a href="#" target="_self">设为封面</a></p>-->
                                <p class="per-album-imgEditDel"><a href="#" target="_self">&nbsp;</a></p>
                            </div>
                        </div>
                        <div class="per-album-titBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self">作品名称</a>
                        </div>
                    </div>
                </li>

                <li>
                    <div class="per-album-box">
                        <div class="per-album-imgBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self"><img src="static/images/pc/personal/album1.jpg" height="230" width="231" alt=""  /></a>
                            <div class="per-album-imgEdit zcbl-hidden">
                                <!--<p class="per-album-imgEditFM"><a href="#" target="_self">设为封面</a></p>-->
                                <p class="per-album-imgEditDel"><a href="#" target="_self">&nbsp;</a></p>
                            </div>
                        </div>
                        <div class="per-album-titBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self">作品名称</a>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="per-album-box">
                        <div class="per-album-imgBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self"><img src="static/images/pc/personal/album2.jpg" height="230" width="231" alt="" /></a>
                            <div class="per-album-imgEdit zcbl-hidden">
                                <!--<p class="per-album-imgEditFM"><a href="#" target="_self">设为封面</a></p>-->
                                <p class="per-album-imgEditDel"><a href="#" target="_self">&nbsp;</a></p>
                            </div>
                        </div>
                        <div class="per-album-titBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self">作品名称</a>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="per-album-box">
                        <div class="per-album-imgBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self"><img src="static/images/pc/personal/album3.jpg" height="230" width="231" alt="" /></a>
                            <div class="per-album-imgEdit zcbl-hidden">
                                <!--<p class="per-album-imgEditFM"><a href="#" target="_self">设为封面</a></p>-->
                                <p class="per-album-imgEditDel"><a href="#" target="_self">&nbsp;</a></p>
                            </div>
                        </div>
                        <div class="per-album-titBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self">作品名称</a>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="per-album-box">
                        <div class="per-album-imgBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self"><img src="static/images/pc/personal/album4.jpg" height="230" width="231" alt="" /></a>
                            <div class="per-album-imgEdit zcbl-hidden">
                                <!--<p class="per-album-imgEditFM"><a href="#" target="_self">设为封面</a></p>-->
                                <p class="per-album-imgEditDel"><a href="#" target="_self">&nbsp;</a></p>
                            </div>
                        </div>
                        <div class="per-album-titBox">
                            <a href="javascipt:;" data-toggle="modal" data-target="#editPic" target="_self">作品名称</a>
                        </div>
                    </div>
                </li>
                <div class="clear"></div>
            </ul>
        </div>
        <div id="page"></div>
    </div>
</div>
<div id="footer"></div>


<!--编辑图片开始 start-->
<div class="modal fade" id="editPic"  aria-hidden="true">
    <button type="button" class="close zcbl-close" data-dismiss="modal" aria-hidden="true"></button>
    <div class="zcbl-modal-6">
        <!--编辑图片开始 start-->
        <div class="per-view-box">
            <div class="per-view-user">
                <div class="per-view-uerImg">
                    <a href="./personal-artwork-pic.html" target="_blank"><img src="static/images/pc/personal/user.jpg" height="100" width="100" alt="" /></a>
                </div>
                <div class="per-view-userInfo">
                    <p><a href="./personal-artwork-pic.html" target="_blank">用户名用户名</a></p>
                    <p class="per-site">北京，中国</p>
                </div>
            </div>
            <div class="clear"></div>
            <div class="per-Slide">
                <div id="mainbody">
                    <img src="static/images/pc/personal/max1.jpg" alt="" width="980" height="550" id="mainphoto" rel="static/images/pc/personal/max1.jpg"  />
                    <div class="picLeft" id="goMaxLeft" onclick="goLeft()"></div>
                    <div class="picRight" id="goMaxRight" onclick="goRight()"></div>
                </div>
                <div class="pototBox">

                    <div class="per-goleft" onclick="goLeft()">&nbsp;</div>

                    <div id="photos">
                        <div id="showArea">
                            <!--
                              SRC: 缩略图地址
                              REL: 大图地址
                            -->
                            <img class="hoverMax" src="static/images/pc/personal/min1.jpg" alt="" width="140" height="140" rel="static/images/pc/personal/min1.jpg"/>
                            <img src="static/images/pc/personal/max2.jpg" alt="" width="140" height="140" rel="static/images/pc/personal/max2.jpg"  />
                            <img src="static/images/pc/personal/min1.jpg" alt="" width="140" height="140" rel="static/images/pc/personal/max1.jpg"/>
                            <img src="static/images/pc/personal/max2.jpg" alt="" width="140" height="140" rel="static/images/pc/personal/max2.jpg"  />
                            <img src="static/images/pc/personal/min1.jpg" alt="" width="140" height="140" rel="static/images/pc/personal/max1.jpg"/>
                            <img src="static/images/pc/personal/max2.jpg" alt="" width="140" height="140" rel="static/images/pc/personal/max2.jpg"  />
                            <img src="static/images/pc/personal/min1.jpg" alt="" width="140" height="140" rel="static/images/pc/personal/max1.jpg"/>
                            <img src="static/images/pc/personal/max2.jpg" alt="" width="140" height="140" rel="static/images/pc/personal/max2.jpg"  />
                        </div>
                    </div>

                    <div class="per-goright" onclick="goRight()">&nbsp;</div>
                </div>
                <div class="clear"></div>
            </div>

            <div class="per-picedit">
                <form action="" class="form-horizontal zcbl-form-horizontal">
                    <div class="form-group zcbl-form-group">
                        <label for="artwotkName" class="col-sm-2 control-label zcbl-control-label">作品名称：</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control zcbl-form-control" name="artwotkName" id="artwotkName" placeholder="请在此填写图片名称" />
                            <!--查看时显示-->
                            <!--<p class="zcbl-control-info">这里显示的是图片的名称</p>-->
                        </div>
                        <p class="per-setControlMsg">*由字母加数字符号至少两种以上字符组成</p>
                    </div>

                    <div class="form-group zcbl-form-group">
                        <label for="keyword" class="col-sm-2 control-label zcbl-control-label">关键词：</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control zcbl-form-control" name="keyword" id="keyword" placeholder="" />
                            <!--查看时显示-->
                            <!--<p class="zcbl-control-info">关键词1，关键词2，关键词3</p>-->
                        </div>
                    </div>

                    <div class="form-group zcbl-form-group">
                        <label for="introduce" class="col-sm-2 control-label zcbl-control-label">作品介绍：</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control zcbl-form-control" name="introduce" id="introduce" placeholder="" />
                            <!--查看时显示-->
                            <!--<p class="zcbl-control-info-line25">这些作品的是我的作品介绍，纯文字 作品介绍，纯文字性介绍这些作品的是我的作品介绍，纯文字性介绍这些作品的是我的作品介绍，纯文字性介绍这些作品的是我的作品介绍，纯文字性介绍这些作品的是我的作品介绍，纯文字性介绍这些作品的是我的作品介绍，纯文字性介绍这些作品的是我的作品介绍，纯文字性介绍 </p>-->
                        </div>
                    </div>
                    <div class="form-group zcbl-form-group">
                        <label for="introduce" class="col-sm-2 control-label zcbl-control-label">发布时间：</label>
                        <div class="col-sm-9">
                            <p class="zcbl-control-info">2016年12月18日 12：22：36</p>
                        </div>
                    </div>
                    <div class="form-group zcbl-form-group">
                        <label for="introduce" class="col-sm-2 control-label zcbl-control-label"></label>
                        <div class="col-sm-9">
                            <button class="btn-yellow-50 right">保存</button>
                        </div>
                    </div>
                </form>
            </div>

            <div id="comments">
            </div>

        </div>
        <!--编辑图片 end-->
    </div>
</div>
<!--编辑图片 end-->


<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="static/js/pc/dest/jquery-1.11.3.min.js"></script>
<script src="static/js/pc/dest/all.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="static/js/pc/dest/bootstrap.min.js"></script>
<script>
    //编辑相册名称
    function editAlbum(){
        $('#albumP').css('display','none');
        $('#albumInput').css('display','block');
        $('#albumInput').val($('#albumName').html());
    }

    //保存相册名称
    function saveAlbum(){
        $('#albumP').css('display','block');
        $('#albumInput').css('display','none');
        $('#albumName').html($('#albumInput').val());
    }


    /*编辑图片start*/
    var spa = 40; //缩略图区域补充数值
    var w = 0;

    //设置当前选中
    function setChecked(checkedObj){
        $('#showArea img').each(function(){
            $(this).removeClass('hoverMax');
        });
        $('#mainphoto').attr('src',checkedObj.attr('rel'));
        checkedObj.addClass('hoverMax');
    }

    //向左切换
    function goLeft(){
        if($(".hoverMax").prevAll().length > 0){
            setChecked($(".hoverMax").prev('img'));
            if($(".hoverMax").nextAll().length>4){
                var marginLeft = parseInt($('#showArea').css('marginLeft'));
                if(isNaN(marginLeft)){
                    marginLeft = 0;
                }
                $('#showArea').css('marginLeft',(marginLeft+170)+'px');
            }
        }
    }

    //向右切换
    function goRight(){
        if($(".hoverMax").nextAll().length > 0){
            setChecked($(".hoverMax").next());
            if($(".hoverMax").prevAll().length>4){
                var marginLeft = parseInt($('#showArea').css('marginLeft'));
                if(isNaN(marginLeft)){
                    marginLeft = 0;
                }
                $('#showArea').css('marginLeft',(marginLeft-170)+'px');
            }
        }
    }

    $(function() {
        var rHtml = '';
        $('#showArea img').each(function(){
            w += parseInt($(this).attr('width')) + spa;
            $(this).click(function() {
                setChecked($(this));
            });
            rHtml += '<img src="' + $(this).attr('rel') + '" width="0" height="0" alt="" />';
        });
        $('#showArea').css('width',parseInt(w) + 'px');
        var rLoad = document.createElement("div");
        $('#photos').append(rLoad);
        rLoad.style.width = "1px";
        rLoad.style.height = "1px";
        rLoad.style.overflow = "hidden";
        rLoad.innerHTML = rHtml;
    });
    /*编辑图片end*/
</script>
</body>
</html>